import * as THREE from 'three';
const loader = new THREE.TextureLoader();
const texture = loader.load('/瓷砖.png');
texture.wrapS = THREE.RepeatWrapping
texture.wrapT = THREE.RepeatWrapping
texture.repeat.set(10, 10)
const geometry = new THREE.PlaneGeometry(2000, 2000);
const material = new THREE.MeshLambertMaterial({
    map: texture,
})

const mesh = new THREE.Mesh(geometry, material);
mesh.rotateX(-Math.PI / 2);
const map = new THREE.Group();
map.add(mesh);
export default { map, texture };